package cc.mcggdd.leah.boot.stock.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 国债逆回购表单对象
 *
 * @author 
 * @since 2025-02-08 12:39
 */
@Getter
@Setter
@Schema(description = "国债逆回购表单对象")
public class StockBondReverseRepoForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "开始日期")
    @NotNull(message = "开始日期不能为空")
    private LocalDate startDate;

    @Schema(description = "结束日期")
    @NotNull(message = "结束日期不能为空")
    private LocalDate endDate;

    @Schema(description = "国债逆回购金额")
    @NotNull(message = "国债逆回购金额不能为空")
    private BigDecimal amount;

    @Schema(description = "国债逆回购利率")
    @NotNull(message = "国债逆回购利率不能为空")
    private BigDecimal rate;

    @Schema(description = "交易手续费")
    @NotNull(message = "交易手续费不能为空")
    private BigDecimal fee;

    @Schema(description = "收益金额")
    @NotNull(message = "收益金额不能为空")
    private BigDecimal income;


}
